import $http from '@/assets/js/http'

//这里是审核人员对应   发布审核的相关js

//查询发布列表
export function getpubCheckList(state,type,categoryLevel1,index,size) {
    return $http.get('/manage/goods/check/list', {
        params: {
            state:state,
            type:type,
            categoryLevel1:categoryLevel1,
            pageIndex: index, 
            pageSize: size, 
        }
    });
}

//审核处理发布
export function postCheckPublish(params) {
    return $http.post('/manage/goods/check', {
        goodsId:params.goodsId,
        state:params.state,
        titleCn:params.titleCn,//以下数据都是中英文格式 
        titleEn:params.titleEn,
        sourceCn:params.sourceCn,
        sourceEn:params.sourceEn,
        outViewCn:params.outViewCn,
        outViewEn:params.outViewEn,
        descriptionCn:params.descriptionCn,
        descriptionEn:params.descriptionEn,
    });
}
//藏品详情
export function getGoodsDetails(id) {
    return $http.get('/manage/goods/detail', {
        params: {
            goodsId:id,
        }
    });
}


